import request from '@/utils/HttpRequest'

export default {

    getArticleInfoList() {
        return request({
            url: '/gmmallclub/clubarticle/list',
            method: 'get',
        })
    },

    getArticleInfoById(id) {
        return request({
            url: '/gmmallclub/clubarticle/info/' + id,
            method: 'get',
        })
    },

    //浏览数量+1
    increaseViewCountInfo(id) {
        return request({
            url: '/gmmallclub/clubarticle/increaseViewCount/' + id,
            method: 'get',
        })
    },

    getHotArticleInfo() {
        return request({
            url: '/gmmallclub/clubarticle/getHotArticle',
            method: 'get',
        })
    },

    publishArticleInfo(article) {
        return request({
            url: '/gmmallclub/clubarticle/saveArticle',
            method: 'post',
            data: article
        })
    }

}